<template>
  <CusCard
    name="排放源管理"
    :content-style="{ height: '267px' }"
  >
    <div class="pfSource-card">
      <div
        class="info"
        v-for="(item, index) in list"
        :key="index"
      >
        <div class="info-left">
          <img
            :src="item.img"
            alt=""
          />
        </div>
        <div class="info-right">
          <div class="top">
            <span>{{ item.text1 }}</span>
            <span>{{ item.text2 }}</span>
          </div>
          <div class="num">{{ item.num }}</div>
        </div>
      </div>
    </div>
  </CusCard>
</template>

<script>
import CusCard from './CusCard.vue'
export default {
  components: { CusCard },
  data() {
    return {
      list: [
        {
          img: require('../images/pf-icon-1.png'),
          text1: '物料存储',
          text2: '环节管理',
          num: 20
        },
        {
          img: require('../images/pf-icon-2.png'),
          text1: '物料存储',
          text2: '环节管理',
          num: 20
        },
        {
          img: require('../images/pf-icon-3.png'),
          text1: '物料存储',
          text2: '环节管理',
          num: 20
        },
        {
          img: require('../images/pf-icon-4.png'),
          text1: '物料存储',
          text2: '环节管理',
          num: 20
        }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.pfSource-card {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
  padding: 30px;
  .info {
    display: flex;
    align-items: center;
    gap: 12px;
    .info-left {
      width: 70px;
      height: 65px;
      img {
        width: 70px;
        height: 65px;
      }
    }
    .info-right {
      display: flex;
      flex-direction: column;
      .top {
        display: flex;
        flex-direction: column;
        span {
          color: rgba(205, 213, 255, 0.5);
          font-size: 16px;
          font-weight: 500;
        }
      }
      .num {
        font-size: 24px;
        font-weight: 600;
        background: linear-gradient(180deg, #fff 24.14%, #7aacff 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
    }
  }
}
</style>
